﻿
namespace EOSCRM.Util
{
    public class Constants
    {
        public const string REPORT_DATASOURCE = "REPORT_DATASOURCE";
        public const string REPORT_IDENTIFY = "REPORT_IDENTIFY";
        public const string REPORT_CHANGETEXT = "REPORT_CHANGETEXT";

        public const string REPORT_FREE_MEM = "REPORT_FREE_MEM";
        public const string PARAM_PAGE = "page";
        public const string PARAM_KEYWORD = "keyword";
        public const string PARAM_FROMDATE = "from";
        public const string PARAM_TODATE = "to";
        public const string PARAM_STATECODE = "state";
        public const string PARAM_KHACHHANGTYPE = "type";
        public const string PARAM_AREACODE = "area";
        public const string PARAM_MANHOMXACMINH = "manhomxacminh";
        public const string PARAM_REPORTED = "reported";
        public const string PARAM_MADDK = "id";
        public const string PARAM_IDKH = "idkh";
        public const string PARAM_MADH = "madh";
        public const string PARAM_TENDP = "tendp";
        public const string PARAM_TENKH = "name";
        public const string PARAM_SONHA = "addr";
        public const string PARAM_DIENTHOAI = "tel";
        public const string PARAM_SOHD = "sohd";
        public const string PARAM_FILTERED = "filtered";

        public const string SESSION_TIEUTHUKHACHHANG = "SessionTieuThuKhachHang";
        
        public const string SETTINGS_CONNECTION = "eosconnection";

        public const byte HasSub = 1;
        public const byte NoSub = 0;
        public const byte Active = 1;
        public const byte Inactive = 0;
        public const byte NotClose = 0;
        public const byte IsClose = 1;
        public const byte Deleted = 1;
        public const byte NotDelete = 0;
        public const string Yes = "Yes";
        public const string No = "No";
        public const byte Male = 0;
        public const byte Female = 1;

        // Category
        public const int ParentId = 0;
        public const string ParentStr = "Root";
        public const string PrefixStr = "--";
        public const string PrefixArrowStr = " ";


        // Sort Direction
        public const string Desc = "DESC";
        public const string Asc = "ASC";

        // project constants:
        public const string ColorRowError = "#FF6A6A";
        public const string ColorClose = "#E6E6FA";
        public const string ColorPotential = "#9ccef1";
        public const string BtnInsert = "Insert";
        public const string BtnUpdate = "Update";
        public const string BtnAssign = "Assign";
        // Log constant
        public const string LogActionInsert = "Insert";
        public const string LogActionUpdate = "Update";
        public const string LogActionDelete = "Delete";

        // Config Constant:
        public const string ConfigTypeNumber = "Number";
        public const string ConfigTypeString = "String";
        public const string ConfigTypeDatetime = "DateTime";
        public const string ConfigDonGia = "DonGia";
        public const string ConfigDonGiaThu = "DonGiaThu";
        public const string ConfigDonGiaBan = "DonGiaBan";
        // Date format in DB
        public const string DateformatDb = "yyyy-MM-dd";
        public const string DateformatView = "dd/MM/yyyy";
        public const string DateTimeformatView = "dd/MM/yyyy :hh:mmm";

        //Luu vet tac vu
        public const string ObjKhachHang = "ObjKhachHang";
        public const string ObjDonDangKy = "ObjDonDangKy";
        public const string ObjDonSuaChua = "ObjDonSuaChua";
        public const string AddNew = "AddNew";
        public const string Update = "Update";
        public const string DeleteObject = "DeleteObject";
        public const string CongTacDefault = "Lắp đặt hệ thống đồng hồ đo nước 15 ly, L=3m";
        public const string GhiChuThietKeDefault = "Khách hàng tự trám lại sân, nền, tường, vỉa hè sau khi thi công xong công trình";

        public const string CRM_DELIMITER = "";
        public const string CRM_NULL_STRING = "";
    }

    public class AttachType
    {
        public const int HOANCONG = 1;
        public const int HOPDONG = 2;
        public const int CHATLUONGNUOC = 3;
        public const int THIETBI = 4;
        public const int KETOAN = 5;
        public const int DAT = 6;
        public const int HINHANH = 7;
        public const int BANVE = 8;
        public const int VATTU = 9;
        public const int DULIEUKHAC = 10;
        public const int VANBAN = 11;
        public const int CANHAN = 12;
    }

    
    
    public class DELIMITER
    {
        /// <summary>
        /// Constant value: __crmdelimiter__
        /// </summary>
        public const string Delimiter = "__crmdelimiter__";
        /// <summary>
        /// data of ghi chi so
        /// </summary>
        public const string deviceghichiso = "__deviceghichiso__";
        /// <summary>
        /// Constant value: __crmnullstring__
        /// </summary>
        public const string NullString = "__crmnullstring__";

        /// <summary>
        /// Constant value: __crmpassed__
        /// </summary>
        public const string Passed = "__crmpassed__";

        /// <summary>
        /// Constant value: __crmfailed__
        /// </summary>
        public const string Failed = "__crmfailed__";

        /// <summary>
        /// Constant value: __crmdenied__
        /// </summary>
        public const string Denied = "__crmdenied__";
    }

    public enum Mode
    {
        Create = 0,
        Update = 1
    }

    public enum ReportMode
    {
        Normal = 0,
        Day = 1,
        Month = 2
    }

    public enum FilteredMode
    {
        None = 0,
        Filtered = 1
    }
    public enum CHUCNANGKYDUYET
    {
        
    }

    public enum TACVUKYDUYET
    {
        /// <summary>
        /// Xử lý
        /// </summary>
        A = 1,
        /// <summary>
        /// Nhập
        /// </summary>
        I =2,
        /// <summary>
        /// Sửa
        /// </summary>
        U =3,
        /// <summary>
        /// Xóa
        /// </summary>
        D=6,
        /// <summary>
        /// HỦY HÓA ĐƠN
        /// </summary>
        H=7
    }

    
   

   

    public enum LOAINHANVIEN
    {
        CN=01,
        QL=02,
        GD=03
    }

    
    public enum DefaultValue
    {
        /// <summary>
        /// Định mức nhân khẩu
        /// </summary>
        DMND=0,
        /// <summary>
        /// Màu sơn đồng hồ
        /// </summary>
        MAUSON=1
    }
}
